<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>仓库管理系统</title>
<base href="${CONTEXT_PATH}/" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link href="static/themes/default/style.css" rel="stylesheet" type="text/css" />
<link href="static/themes/css/core.css" rel="stylesheet" type="text/css" />
<link href="static/uploadify/css/uploadify.css" rel="stylesheet" type="text/css" />
<link href="static/css/migr.line_border.css" rel="stylesheet" type="text/css" />
<!-- 业务导航css -->
<link href="static/css/migr.main_nav.css" rel="stylesheet" type="text/css" />

<!-- mshop css -->
<link href="static/css/mshop/product_input.css" rel="stylesheet" type="text/css" />
<!--[if IE]>
<link href="static/themes/css/ieHack.css" rel="stylesheet" type="text/css" />
<![endif]-->
<script src="static/js/speedup.js" type="text/javascript"></script>

<#if (3>2)>
    <!-- all -->
    <script src="static/js/jquery-1.4.4.js" type="text/javascript"></script>
    <script src="static/js/jquery.cookie.js" type="text/javascript"></script>
    <script src="static/js/jquery.metadata.js" type="text/javascript"></script>
    <script src="static/js/jquery.validate.js" type="text/javascript"></script>
    <script src="static/js/jquery.bgiframe.js" type="text/javascript"></script>
    <script src="static/js/jquery.lSelect.js" type="text/javascript"></script>
    <script src="static/js/jquery.validate.methods.js" type="text/javascript"></script>
    <script src="static/js/jquery.validate.cn.js" type="text/javascript"></script>
    <!-- <script src="xheditor/xheditor-1.1.9-zh-cn.min.js" type="text/javascript"></script> -->
    <script src="static/uploadify/scripts/swfobject.js" type="text/javascript"></script>
    <script src="static/uploadify/scripts/jquery.uploadify.v2.1.4.min.js" type="text/javascript"></script>
    <script src="static/js/mshop/jquery.livequery.js" type="text/javascript"></script>
    <script src="static/js/mshop/jquery.tools.js" type="text/javascript"></script>
    <script src="static/js/jquery.highlight-3.js" type="text/javascript"></script>
    <!-- ############bird########### --> 
    <script src="static/js/bird.core.js" type="text/javascript"></script>
    <script src="static/js/bird.util.date.js" type="text/javascript"></script>
    <script src="static/js/bird.validate.method.js" type="text/javascript"></script>
    <script src="static/js/bird.barDrag.js" type="text/javascript"></script>
    <script src="static/js/bird.drag.js" type="text/javascript"></script>
    <script src="static/js/bird.tree.js" type="text/javascript"></script>
    <script src="static/js/bird.accordion.js" type="text/javascript"></script>
    <script src="static/js/bird.theme.js" type="text/javascript"></script>
    <script src="static/js/bird.switchEnv.js" type="text/javascript"></script>
    <script src="static/js/bird.alertMsg.js" type="text/javascript"></script>
    <script src="static/js/bird.contextmenu.js" type="text/javascript"></script>
    <script src="static/js/bird.navTab.js" type="text/javascript"></script>
    <script src="static/js/bird.tab.js" type="text/javascript"></script>
    <script src="static/js/bird.resize.js" type="text/javascript"></script>
    <script src="static/js/bird.cssTable.js" type="text/javascript"></script>
    <script src="static/js/bird.stable.js" type="text/javascript"></script>
    <script src="static/js/bird.taskBar.js" type="text/javascript"></script>
    <script src="static/js/bird.pagination.js" type="text/javascript"></script>
    <script src="static/js/bird.datepicker.js" type="text/javascript"></script>
    <script src="static/js/bird.effects.js" type="text/javascript"></script>
    <script src="static/js/bird.panel.js" type="text/javascript"></script>
    <script src="static/js/bird.checkbox.js" type="text/javascript"></script>
    <script src="static/js/bird.history.js" type="text/javascript"></script>
    <script src="static/js/bird.combox.js" type="text/javascript"></script>
    <script src="static/js/bird.dialog.js" type="text/javascript"></script>
    <script src="static/js/bird.dialogDrag.js" type="text/javascript"></script>
    <script src="static/js/bird.ajax.js" type="text/javascript"></script>
    <script src="static/js/bird.database.js" type="text/javascript"></script>
    <script src="static/js/bird.print.js" type="text/javascript"></script>
    <script src="static/js/bird.regional.zh.js" type="text/javascript"></script>
    
    <link rel="stylesheet" href="static/js/ztree/style/zTreeStyle.css" type="text/css"/>
    <script src="static/js/ztree/jquery.ztree.core-3.0.js" type="text/javascript"></script>
    <script src="static/js/ztree/jquery.ztree.excheck-3.0.js" type="text/javascript"></script>
    <script src="static/js/migr.js" type="text/javascript"></script>
    <script src="static/js/migr.checkDialog.js" type="text/javascript"></script>
    <script src="static/js/migr.dynamicTable.js" type="text/javascript"></script>
    
    <script src="static/js/migr.readonlyAll.js" type="text/javascript"></script>
    <script src="static/js/migr.checkWaterMaker.js" type="text/javascript"></script>
    <script src="static/js/migr.searchdate.js" type="text/javascript"></script>
    <script src="static/js/migr.jTreeGrid.js" type="text/javascript"></script>
    <script src="static/js/migr.cssTreeTable.js" type="text/javascript"></script>
    <script src="static/js/migr.mztree.js" type="text/javascript"></script>
    <script src="static/js/migr.authority.js" type="text/javascript"></script>
<#else>
    <!-- min -->
    <script src="static/js/min/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="static/js/min/jquery.cookie.min.js" type="text/javascript"></script>
    <script src="static/js/jquery.metadata.js" type="text/javascript"></script>
	<script src="static/js/jquery.validate.js" type="text/javascript"></script>
    <!-- <script src="static/js/min/jquery.validate.min.js" type="text/javascript"></script> -->
    <script src="static/js/min/jquery.bgiframe.min.js" type="text/javascript"></script>
    <script src="static/js/min/jquery.lSelect.min.js" type="text/javascript"></script>
    <script src="static/js/jquery.validate.methods.js" type="text/javascript"></script>
    <script src="static/js/jquery.validate.cn.js" type="text/javascript"></script>
    <!-- <script src="xheditor/xheditor-1.1.9-zh-cn.min.js" type="text/javascript"></script> -->
    <script src="static/uploadify/scripts/swfobject.js" type="text/javascript"></script>
    <script src="static/uploadify/scripts/jquery.uploadify.v2.1.4.min.js" type="text/javascript"></script>
    <script src="static/js/mshop/jquery.livequery.js" type="text/javascript"></script>
    <script src="static/js/mshop/jquery.tools.js" type="text/javascript"></script>
    <script src="static/js/jquery.highlight-3.js" type="text/javascript"></script>
    <script src="static/js/min/bird.min.js" type="text/javascript"></script>
    <script src="static/js/bird.dialog.js" type="text/javascript"></script>
    <script src="static/js/min/bird.dialogDrag.min.js" type="text/javascript"></script>
    <script src="static/js/bird.ajax.js" type="text/javascript"></script>
    <script src="static/js/min/bird.database.min.js" type="text/javascript"></script><!--集成了database和print -->
    <script src="static/js/bird.regional.zh.js" type="text/javascript"></script>
    <link rel="stylesheet" href="static/js/ztree/style/zTreeStyle.css" type="text/css"/>
    <script src="static/js/ztree/jquery.ztree.core-3.0.js" type="text/javascript"></script>
    <script src="static/js/ztree/jquery.ztree.excheck-3.0.js" type="text/javascript"></script>
    <script src="static/js/migr.js" type="text/javascript"></script>
    <script src="static/js/migr.checkDialog.js" type="text/javascript"></script>
    <script src="static/js/min/migr.dynamicTable.min.js" type="text/javascript"></script>
    <script src="static/js/min/migr.readonlyAll.min.js" type="text/javascript"></script>
    <script src="static/js/min/migr.checkWaterMaker.min.js" type="text/javascript"></script>
    <script src="static/js/min/migr.searchdate.min.js" type="text/javascript"></script>
    <script src="static/js/min/migr.jTreeGrid.min.js" type="text/javascript"></script>
    <script src="static/js/min/migr.cssTreeTable.min.js" type="text/javascript"></script>
    <script src="static/js/min/migr.mztree.min.js" type="text/javascript"></script>
    <script src="static/js/min/migr.authority.min.js" type="text/javascript"></script>
</#if>
    <!-- ours -->
    <script src="static/js/bird.ui.js" type="text/javascript"></script>
    <script src="static/js/migr.lzy.js" type="text/javascript"></script>
    <script src="static/js/migr.fage.js" type="text/javascript"></script>
    <script src="static/js/migr.bage.js" type="text/javascript"></script>
    <script src="static/js/migr.lxf.js" type="text/javascript"></script>
    <script src="static/js/migr.zz.js" type="text/javascript"></script>
	<script src="static/js/migr.zl.js" type="text/javascript"></script>
    <!-- mshop -->
    <script src="static/js/mshop/product.js" type="text/javascript"></script>
    <script src="static/js/mshop/product_image.js" type="text/javascript"></script>


<script type="text/javascript">
$(function(){
	var win = $(this);
    //加载左侧菜单
    jQuery.ajax({
        type: 'POST',
        url: 'sidebar?func=main',
        success: function(html){
            var json = Bird.jsonEval(html);
            if (json.statusCode==Bird.statusCode.timeout){
                alertMsg.error(json.message || Bird.msg("sessionTimout"), {okCall:function(){
                    Bird.loadLogin();
                }});
            } else if (json.statusCode==Bird.statusCode.error || json.statusCode == Bird.statusCode.noAuth){
                if (alertMsg && json.message) alertMsg.error(json.message);
            } else {
                $("#sidebar").find(".accordion").remove().end().append(html);
            }
            Bird.init("static/js/bird.frag.xml", {
                loginUrl:"admin/login_dialog.vm",//登录页面地址
                loginTitle:"登录",    // 弹出登录对话框
                pregUrl:"admin/preg_dialog.vm",
                regTitle:"产品注册",
                pageInfo:{pageNum:"pager.pageNumber", numPerPage:"pager.pageSize", orderField:"pager.orderBy", orderDirection:"pager.orderType"}, //【可选】
                debug:false,    // 调试模式 【true|false】
                callback:function(){
                    initEnv();
                    $("#themeList").theme({themeBase:"themes"}); // themeBase 相对于index页面的主题base路径
                },
                homePath:''
            });
        },
        error: Bird.ajaxError
    });
	/* 禁止选择文本
	win.bind('mousedown',function(e){
		win.bind('mousemove',function(e){
			return false;
		});
    });
	win.bind('mouseup',function(e){
		$(this).unbind('mousemove');
		return false;
	});
	win.bind('selectstart',function(e){
		return false;
    }); */
	
	/* 禁用右键
	win.bind('contextmenu',function(e){
		return false;
    });*/
    
    var box = jQuery("#navigate");
    box.loadUrl('shortcut','',function(){
            box.find("[layoutH]").layoutH();//展示控件初始化
        },'POST');
});
/*确认离开此页
    window.onbeforeunload = function (){
        var warning="";        
        return warning;
    }
*/
</script>
<style type="text/css">
	/* css for navMenu
	#header{height:85px}
	#leftside, #container, #splitBar, #splitBarProxy{top:90px} */
	ul.rightTools {float:right; display:block;}
	ul.rightTools li{float:left; display:block; margin-left:5px}
	.ztree li button.switch.level0 {visibility:hidden; width:1px;}
	.ztree li ul.level0 {padding:0; background:none;}
</style>
</head>

<body scroll="no">
	<div id="layout">
		<div id="header">
			<div class="headerNav">
				<span class="logo" href="#">仓库管理系统</span>
				<ul class="nav">
                    <li><span>当前用户：<span id="loginName"><#if (loginUser.realname)! == "">${(loginUser.username)!}<#else>${(loginUser.realname)!}</#if></span> &nbsp&nbsp</span></li>
					<li class="line"><a href="toUpdatePassword" target="dialog" rel="s_password_update" width="510" height="230" title="修改密码">修改密码</a></li>
					<li class="line"><a href="logout">退出</a></li>
					<li class="line" style="margin-right:60px"></li>
				</ul>
			</div>
		</div>

		<div id="leftside">
			<div id="sidebar_s">
				<div class="collapse">
					<div class="toggleCollapse"><div></div></div>
				</div>
			</div>
			<div id="sidebar">
				<div class="toggleCollapse" style="padding-left:20px;">
					<h2>主菜单</h2>
					<div>收缩</div>
				</div>
			</div>
		</div>
		<div id="container">
			<div id="navTab" class="tabsPage">
				<div class="tabsPageHeader">
					<div class="tabsPageHeaderContent tabsPageHeaderMargin"><!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
						<ul class="navTab-tab">
							<li tabid="main" class="main"><a href="javascript:void(0);"><span><span class="home_icon">我的桌面</span></span></a></li>
						</ul>
					</div>
					<div class="tabsLeft">left</div><!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
					<div class="tabsRight">right</div><!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
					<div class="tabsMore">more</div>
				</div>
				<ul class="tabsMoreList">
					<li><a href="javascript:void(0);">我的桌面</a></li>
				</ul>
				<div class="navTab-panel tabsPageContent layoutBox">
					<div class="page unitBox">
						<div class="pageContent" style="width:1100px;">
                        	<div id="navigate" class="pageContent">
                            </div>
                        </div>
					</div>
					
				</div>
			</div>
		</div>

	</div>

	<div id="footer">Copyright &copy; 2013  © 版权所有 </div>
</body>
</html>